import requests

url = 'https://www.baidu.com'

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36'
}

proxies = {
    'http': 'http://116.117.134.135:9999',
    'https': 'https://221.226.94.218:110',
}


response = requests.get(url, headers=headers, proxies=proxies, timeout=5)

print(response.content.decode('utf-8'))

# with open('baibai.html', 'w', encoding='utf-8') as f:
#     f.write(response.content.decode('utf-8'))


# 免费的  不能用
